package ui;
import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import net.miginfocom.swing.MigLayout;
import javax.swing.JButton;
import java.awt.Panel;
import javax.swing.JTextField;
import java.awt.Canvas;
import java.awt.TextField;
import javax.swing.JLabel;
import javax.swing.JMenuBar;
import javax.swing.JComboBox;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JSeparator;
import java.awt.Button;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;


public class user_page extends JFrame {

	private JPanel contentPane;
	private JTextField textField;
	private JLabel lblFirstname;
	private JLabel lblLastname;
	private JLabel lblUsername;
	private JLabel lblEmail;
	private JMenu mnSearchbrowse;
	private JTextField textField_1;
	private JTextField textField_2;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					user_page frame = new user_page();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public user_page() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 800, 600);
		
		JMenuBar menuBar = new JMenuBar();
		setJMenuBar(menuBar);
		
		JMenu mnHome = new JMenu("Home");
		menuBar.add(mnHome);
		
		
		JMenuItem mntmHome = new JMenuItem("Home");
		mnHome.add(mntmHome);
		mntmHome.addActionListener(
				new ActionListener(){
					public void actionPerformed(ActionEvent e)
					{
						home x = new home();
						x.setVisible(true);
						dispose();
					}

				}
			);
		
		JMenuItem mntmProfilePage = new JMenuItem("Profile Page");
		mnHome.add(mntmProfilePage);
		
		mnSearchbrowse = new JMenu("Search/Browse");
		menuBar.add(mnSearchbrowse);
		
		JMenuItem mntmBrowse = new JMenuItem("Browse");
		mnSearchbrowse.add(mntmBrowse);
		
		JMenuItem mntmSearch = new JMenuItem("Search");
		mnSearchbrowse.add(mntmSearch);
		
		JMenu mnV = new JMenu("V");
		menuBar.add(mnV);
		
		JMenuItem mntmEditProfile = new JMenuItem("Edit Profile");
		mnV.add(mntmEditProfile);
		
		JMenuItem mntmLogOut = new JMenuItem("Log Out");
		mnV.add(mntmLogOut);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		textField = new JTextField("Pic");
		textField.setBounds(13, 14, 225, 225);
		contentPane.add(textField);
		textField.setColumns(10);
		
		lblFirstname = new JLabel("First_Name");
		lblFirstname.setBounds(248, 14, 100, 14);
		contentPane.add(lblFirstname);
		
		lblLastname = new JLabel("Last_Name");
		lblLastname.setBounds(248, 39, 100, 14);
		contentPane.add(lblLastname);
		
		lblUsername = new JLabel("User_Name");
		lblUsername.setBounds(248, 64, 100, 14);
		contentPane.add(lblUsername);
		
		lblEmail = new JLabel("Email");
		lblEmail.setBounds(248, 89, 100, 14);
		contentPane.add(lblEmail);
		
		textField_1 = new JTextField("topics created and stuff");
		textField_1.setBounds(501, 14, 273, 515);
		contentPane.add(textField_1);
		textField_1.setColumns(10);
		
		textField_2 = new JTextField("wish list maybe");
		textField_2.setBounds(13, 250, 478, 279);
		contentPane.add(textField_2);
		textField_2.setColumns(10);
		

	}
}
